/**
 * Created by zjy629 on 2018/4/16.
 */
$(function () {
    $("#register").click(function () {
        var name = $("#name").val();
        var password = $("#password").val();
        var datas = {'name':name,'password':password};
        requestData("/user/register",datas,sucFac,erroFac);
    });

    function sucFac(data) {
        //alert('222');
        alert(data);
    }

    function  erroFac(data) {
        alert(data);
    }

})
